package com.gyw.myapplication;


import android.os.Bundle;
import android.support.v7.app.AppCompatActivity;
import android.view.View;
import android.widget.Button;

import butterknife.BindView;
import butterknife.ButterKnife;
import butterknife.OnClick;


public class MainActivity extends AppCompatActivity {


    @BindView(R.id.compare)
    Button compare;
    @BindView(R.id.xydata)
    Button xydata;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_main);
        ButterKnife.bind(this);

    }

    @OnClick({R.id.compare, R.id.xydata})
    public void onClick(View view) {
        switch (view.getId()) {
            case R.id.compare:
                CompareActivity.actionStart(this);

                break;
            case R.id.xydata:
                XyAxisActivity.actionStart(this);

                break;
        }
    }
}
